import Vue from 'vue'
import LazyRender from 'vue-lazy-render'
Vue.use(LazyRender)
import {
  AlertPlugin,
  ConfirmPlugin,
  ToastPlugin,
  LoadingPlugin,
  Checker,
  CheckerItem,
  Picker,
  Popup,
  CellFormPreview,
  Group,
  Cell,
  XInput,
  XButton,
  Icon,
  PopupRadio,
  Datetime,
  XDialog
} from 'vux'


/* vux plugins */
ConfirmPlugin.install(Vue)
AlertPlugin.install(Vue)
ConfirmPlugin.install(Vue)
ToastPlugin.install(Vue)
LoadingPlugin.install(Vue)
/* vux component */

Vue.component('Checker', Checker)
Vue.component('CheckerItem', CheckerItem)
Vue.component('Popup', Popup)
Vue.component('Group', Group)
Vue.component('Cell', Cell)
Vue.component('XInput', XInput)
Vue.component('XButton', XButton)
Vue.component('cell-form-preview', CellFormPreview)
Vue.component('Icon', Icon)
Vue.component('PopupRadio', PopupRadio)
Vue.component('Datetime', Datetime)
Vue.component('Picker', Picker)
Vue.component('XDialog', XDialog)
/*------------ 自定义组件 ----------------*/
Vue.component('page', require('@/components/page').default)
Vue.component('roll', require('@/components/roll').default)
Vue.component('mLoading', require('@/components/mLoading').default)
Vue.component('infinite', require('@/components/infinite').default)
Vue.component('mImg', require('@/components/mImg').default)

Vue.component('mButton', require('@/components/mButton').default)

/* 标题头 begin */
Vue.component('mHeader', require('@/components/mHeader').default)
Vue.component('mHeader', require('@/components/mHeader').default)
Vue.component('mHeader2', require('@/components/mHeader/mHeader2').default)
Vue.component('mHeader3', require('@/components/mHeader/mHeader3').default)
/* 标题头 end */

Vue.component('mSpinner', require('@/components/mSpinner').default)

Vue.component('scroll', require('@/components/scroll').default)
Vue.component('myScroll', require('@/components/myScroll').default)
Vue.component('mMsg', require('@/components/mMsg.vue').default)

/*---- form begin ----*/
Vue.component('mGroup', require('@/components/form/mGroup').default)
Vue.component('mCell', require('@/components/form/mCell').default)
Vue.component('mInput', require('@/components/form/mInput').default)
Vue.component('mInputCode', require('@/components/form/mInputCode').default)
/*---- form end ----*/


Vue.component('textWait', require('@/components/textWait').default)